package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljh
 * @since 2020-08-18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class CmfzArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "article_id", type = IdType.AUTO)
    private Integer articleId;

    private String articleName;

    private String articleImage;

    private String articleContent;

    private Integer guruId;

    private Date articleDate;

    /**
     * 状态 0代表未删除  1代表删除
     */
    @TableLogic(
            value = "0"
            ,delval = "1"
    )
    private Integer articleStatus;

    //上师
    @TableField(exist = false)
    private CmfzGuru cmfzGuru;


}
